package com.otitan.la.forest.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.otitan.la.forest.system.dto.DicDTO;
import com.otitan.la.forest.system.entity.DicEntity;
import com.otitan.la.forest.system.vo.DicVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 字典表
 * 
 * @author jiacs
 * @email xxx
 * @date 2020-09-17 12:53:59
 */
@Mapper
public interface DicMapper extends BaseMapper<DicEntity> {

    /**
     * 分页查询字典列表
     * @author jiachangsen
     * @param [dic, pagePlug]
     * @return java.util.List<com.otitan.la.forest.system.vo.DicVO>
     * @exception
     * @date 2020/09/28 22:16
     */
    List<DicVO> findPageData(@Param("dic") DicDTO dic, Page<DicVO> pagePlug);

    List<DicDTO> findAllDic();
}
